 {% load staticfiles %}
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>物流监控</title>

    <!-- Bootstrap -->
    <link href="{% static '' %}default/css/bootstrap.min.css" rel="stylesheet">
      <link href="{% static '' %}default/css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">
      <link href="{% static '' %}default/css/style.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
{% include 'default/block_nav.html' %}


<div class="container theme-showcase" role="main">


      <div class="page-header">
        <h1>物流数据导入 </h1>


      </div>
    <div class="row">
        <div class="col-md-12">

            <div class="container text-center">

                <form action="" enctype="multipart/form-data" method="post" onsubmit="return chk();">
                    <div style="width:200px;margin: 25px auto;font-size: 16px;">
                    <input type="file" name="wuliu" class="input-file"/>
                    </div>
                    {% csrf_token %}
                    <button type="submit" class="btn btn-lg btn-primary">导入物流数据</button>
                </form>

            </div>

        </div>
    </div>
</div>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="{% static '' %}default/js/bootstrap.min.js"></script>
<script type="text/javascript">
function chk(){
        var obj = document.getElementById('wuliu');
        if(obj.value==''){
                alert("请选择文件上传。");
                return false;
            }
    }
</script>
  {% include 'default/tongji.html' %}


  <!-- Modal -->

  </body>
</html>